package com.base.simple.login.ui;

import android.view.View;
import android.widget.Button;

import com.base.simple.R;
import com.base.simple.login.contract.LoginContract;
import com.base.simple.login.presenter.LoginPresenter;
import com.dream.base.tools.ToastUtil;
import com.dream.base.ui.BaseActivity;

/**
 * @author: WangKunHui
 * Date: 2017/8/17 17:45
 * Desc:
 * E-mail:life_artist@163.com
 */
public class LoginActivity extends BaseActivity<LoginPresenter> implements LoginContract.View {

    private Button loginButton;

    @Override
    protected int setLayoutRes() {
        return R.layout.actiivty_login;
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void setListeners() {
        loginButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                mPresenter.requestLogin("", "");
            }
        });
    }

    @Override
    protected LoginPresenter initPresenter() {
        return new LoginPresenter();
    }


    @Override
    public void onBackPressed() {
        super.onBackPressed();
    }


}
